package be.kdg.bombermanunlimited.audio.player;

import java.rmi.RemoteException;

import be.kdg.bombermanunlimited.audio.rmi.LocalAudioManager;
import be.kdg.bombermanunlimited.client.CentralRegistry;
import be.kdg.bombermanunlimited.client.CentralRegistry.BombermanObjects;
import be.kdg.bombermanunlimited.client.network.NetworkFactory;

public class AudioTest {
	/**
	 * testklasse voor de audiomanager. Deprecated.
	 * 
	 * @author Siegfried
	 */
	@SuppressWarnings("unused")
	private static LocalAudioManager manager;

	public static void main(String arg[]) {
		CentralRegistry
				.getRegistry()
				.putObject(
						BombermanObjects.MUSIC_DIRECTORY,
						"C:\\Users\\Siegfried\\Documents\\Vuze Downloads\\Symphony X - Iconoclast (Deluxe Edition) 2CD 2011 (320 kbps)\\CD1\\");
		int port = 2032;
		CentralRegistry.getRegistry().putObject(BombermanObjects.LOCAL_IP,
				"127.0.0.1");
		NetworkFactory.createNetworkFactory("127.0.0.1", 2020);
		NetworkFactory.getNetworkFactory().createRingNetwork(port);

		try {
			manager = new LocalAudioManager("127.0.0.1", 2020);
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
}
